package org.huangrui.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author hr
 * @Create 2025-11-07 16:08
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee implements Comparable<Employee>{
    private int id;
    private String name;
    private double salary;

    @Override
    public int compareTo(Employee o) {
        return this.id - o.id;
    }
}
